home *** CD-ROM | disk | FTP | other *** search
/ SOHO - Exploring the Sun - 2003 Update / SOHO - Exploring the Sun - 2003 Update.iso / pc / data / main.dcr / buttons_5.ls < prev    next >
Encoding:
Text File  |  2003-02-25  |  3.9 KB  |  139 lines

  1. on prepareFrame
  2.   global JumpAmount
  3.   if JumpAmount > 0 then
  4.     if the visible of sprite 104 <> 1 then
  5.       set the visible of sprite 104 to 1
  6.     end if
  7.   else
  8.     if the visible of sprite 104 <> 0 then
  9.       set the visible of sprite 104 to 0
  10.     end if
  11.   end if
  12. end
  13.  
  14. on exitFrame
  15.   global bl, xp, yp, notrollover, blminus, RoverNow, RoverLast, spr, FirstMain, global_volume
  16.   if not soundBusy(1) then
  17.     if (the frame >= label("newsun")) and (the frame < label("newsun_endloading")) then
  18.       puppetSound(1, member "Sohoprg3" of castLib "audio")
  19.     else
  20.       if ((the frame >= label("sunh_01")) and (the frame < label("soho_results_old"))) or ((the frame >= label("sun_cover")) and (the frame < label("esa"))) then
  21.         puppetSound(1, member "Sohoprg2" of castLib "audio")
  22.       else
  23.         if (the frame >= label("mainmenu")) and (global_volume > 0) then
  24.           puppetSound(1, member "Sohoprg" of castLib "audio")
  25.         end if
  26.       end if
  27.     end if
  28.   end if
  29.   if blminus = 1 then
  30.     nothing()
  31.   else
  32.     if rollOver(100) then
  33.       set RoverNow to 100
  34.     end if
  35.     if rollOver(101) then
  36.       set RoverNow to 101
  37.     end if
  38.     if rollOver(103) then
  39.       set RoverNow to 103
  40.     end if
  41.     if rollOver(104) then
  42.       set RoverNow to 104
  43.     end if
  44.     if rollOver(105) then
  45.       set RoverNow to 105
  46.     end if
  47.     if rollOver(106) then
  48.       set RoverNow to 106
  49.     end if
  50.     if rollOver(107) then
  51.       set RoverNow to 107
  52.     end if
  53.     if rollOver(120) then
  54.       set RoverNow to 120
  55.     end if
  56.     if not rollOver(120) and not rollOver(100) and not rollOver(101) and not rollOver(103) and not rollOver(104) and not rollOver(105) and not rollOver(106) and not rollOver(107) then
  57.       set notrollover to 1
  58.       if bl > 0 then
  59.         set blminus to 1
  60.       end if
  61.     else
  62.       if rollOver(120) then
  63.         set spr to 114
  64.       else
  65.         set spr to 108
  66.       end if
  67.       set notrollover to 0
  68.     end if
  69.   end if
  70.   if rollOver(120) and (bl = 0) then
  71.     set xp to 540
  72.     set yp to 420
  73.     set the member of sprite 114 to member "edit_hlp" of castLib "buttons"
  74.   end if
  75.   if rollOver(100) and (bl = 0) then
  76.     set xp to 560
  77.     set yp to 465
  78.     if the frame < label("mmstart") then
  79.       set the member of sprite 108 to member "volume_hlp2b" of castLib "buttons"
  80.     else
  81.       set the member of sprite 108 to member "volume_hlp2" of castLib "buttons"
  82.     end if
  83.   end if
  84.   if rollOver(101) and (bl = 0) then
  85.     set xp to 560
  86.     set yp to 465
  87.     if the frame < label("mmstart") then
  88.       set the member of sprite 108 to member "volume_hlp1b" of castLib "buttons"
  89.     else
  90.       set the member of sprite 108 to member "volume_hlp1" of castLib "buttons"
  91.     end if
  92.   end if
  93.   if rollOver(103) and (bl = 0) and (the locV of sprite 99 <> 6) then
  94.     set xp to 90
  95.     set yp to 8
  96.     set the member of sprite 108 to member "mainmenu_hlp" of castLib "buttons"
  97.   end if
  98.   if rollOver(105) and (bl = 0) then
  99.     set xp to 333
  100.     set yp to 450
  101.     set the member of sprite 108 to member "edit_hlp" of castLib "buttons"
  102.   end if
  103.   if rollOver(104) and (bl = 0) then
  104.     set xp to 430
  105.     set yp to 433
  106.     set the member of sprite 108 to member "back_hlp2" of castLib "buttons"
  107.   end if
  108.   if rollOver(106) and (bl = 0) then
  109.     set xp to 55
  110.     set yp to 437
  111.     set the member of sprite 108 to member "left_hlp" of castLib "buttons"
  112.   end if
  113.   if rollOver(107) and (bl = 0) then
  114.     set xp to 105
  115.     set yp to 433
  116.     set the member of sprite 108 to member "right_hlp" of castLib "buttons"
  117.   end if
  118.   if the locH of sprite spr <> xp then
  119.     set the locH of sprite spr to xp
  120.     set the locV of sprite spr to yp
  121.   end if
  122.   if (RoverNow <> RoverLast) and (bl > 0) then
  123.     set blminus to 1
  124.   end if
  125.   if blminus = 1 then
  126.     set bl to bl - 30
  127.     set the blend of sprite spr to bl
  128.   else
  129.     if (notrollover = 0) and (bl < 90) then
  130.       set bl to bl + 30
  131.       set the blend of sprite spr to bl
  132.     end if
  133.   end if
  134.   if bl = 0 then
  135.     set blminus to 0
  136.   end if
  137.   set RoverLast to RoverNow
  138. end
  139.